
when(not can-find(first qad_wkfl where qad_key1 = "BARCODE" and qad_key2 = {1} and
                                      (qad_key3 = "" or entry(1,qad_key3,".") = entry(1,execname,".")) and
                                      (qad_key4 = "" or qad_key4 = global_userid) and 
                                       qad_logfld[1] = yes))
                                       